package networking;
import java.io.Serializable;

@SuppressWarnings("serial")
public class SMap implements Serializable 
{
	private int[][] map;
	private String title;
	
	public SMap(int[][] array, String t) 
	{
		map = array;
		title = t;
	}

	public void setMap(int[][] m)
	{
		map = m;
	}
	
	public int[][] getMap()
	{
		return map;
	}
	
	public int getValue(int x, int y)
	{
		return map[x][y];
	}

	public int getHeight() 
	{
		return map[0].length;
	}

	public int getWidth() 
	{
		return map.length;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return title;
	}
}
